<template>
  <div>
    <span v-for="(item, index) in arr" :key="index">
      <input type="checkbox" name="" id="" v-model="arr1" :value="index" />
      {{ item }}
    </span>
    <ul>
      <li v-for="(item, index) in arr1" :key="index">
        {{ arr[item] }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'Day02App',

  data() {
    return {
      // 数据在这里
      arr: ['科幻', '喜剧', '动漫', '冒险', '科技', '军事', '娱乐', '奇闻'],
      arr1: []
    }
  },

  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped></style>
